package com.qiyuexinxi.chat.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author yangxingyu
 * @date 2020/3/5
 * @description
 */
@Data
@ApiModel("增加点赞")
public class AddThumbInfoRequest {

    @ApiModelProperty(value = "用户id",required = true)
    @NotNull(message = "用户id不能为空")
    private Integer thumbUserId;

    @ApiModelProperty(value = "点赞内容ID",required = true)
    @NotNull(message = "点赞内容ID不能为空")
    private Integer thumbAssociationId;

    @ApiModelProperty(value = "点赞内容类型 1图片 2视频 3动态 4主页 5评论",required = true)
    @NotNull(message = "点赞内容类型不能为空")
//    @Pattern(regexp = "[1-5]", message = "点赞内容类型格式错误 1图片 2视频 3动态 4主页 5评论")
    private Integer thumbAssociationType;


}
